//
//  ViewController.m
//  Holle
//
//  Created by 夏传海 on 2016/12/1.
//  Copyright © 2016年 夏传海. All rights reserved.
//

#import "ViewController.h"
#import "ZjmViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.barTintColor = [UIColor  colorWithRed:126.0/225 green:87.0/225 blue:194.0/225 alpha:1];
    self.view.backgroundColor = [UIColor colorWithRed:126.0/225 green:87.0/225 blue:194.0/225 alpha:1];
    
    
    UIImageView *im = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"123123"]];
    
    im.frame = CGRectMake(140, 200, 120, 120);
    im.layer.cornerRadius = 60;
    [im.layer setMasksToBounds:YES];
    im.layer.borderWidth = 1;
    im.layer.borderColor = [[UIColor whiteColor] CGColor];
    [self.view addSubview:im];
    UITextField *te = [[UITextField alloc]init];
    te.placeholder = @"手机号/holle号";
    te.frame = CGRectMake(100, 350, 200, 20);
    te.backgroundColor = [UIColor whiteColor];
    te.layer.cornerRadius = 5;
    [te.layer setMasksToBounds:YES];
    [self.view addSubview:te];
    
//    UIImageView *view=[[UIImageView alloc]initWithFrame:CGRectMake(100, 350, 200, 41)];
//    view.backgroundColor=[UIColor blueColor];
//    [self.view addSubview:view];
//    
    
    UITextField *te2 = [[UITextField alloc]init];
    te2.placeholder = @"输入六位以上的密码";
    te2.frame = CGRectMake(100, 375, 200, 20);
    te2.backgroundColor = [UIColor whiteColor];
    te2.layer.cornerRadius = 5;
    [te2.layer setMasksToBounds:YES];
    [self.view addSubview:te2];
    
    UIButton *but = [UIButton buttonWithType:1];
    but.frame = CGRectMake(130, 420, 140, 30);
    but.backgroundColor=[UIColor colorWithRed:103.0/255 green:58.0/225 blue:183.0/225 alpha:1];
    but.layer.cornerRadius = 5;
    [but setTitle:@"登   陆" forState:UIControlStateNormal];
    [but.layer setMasksToBounds:YES];
    [but setTintColor:[UIColor colorWithRed:126.0/225 green:87.0/225 blue:194.0/225 alpha:1]];
    [but addTarget:self action:@selector(abcd) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:but];
    
//    UILabel *lb = [[UILabel alloc]init];
//    lb.text = @"账号:";
//    lb.frame = CGRectMake(80, -10, self.view.frame.size.width, self.view.frame.size.height);
//    [self.view addSubview:lb];
    // Do any additional setup after loading the view, typically from a nib.
}


//视图将要出现  隐藏导航栏
- (void) viewWillAppear:(BOOL)animated
{
//    [super viewWillAppear:YES];
//    [self.navigationController setNavigationBarHidden:YES animated:YES];
}

- (void)abcd
{
    ZjmViewController *lef = [[ZjmViewController alloc] init];
    
//    valueView.delegate = self;
    
//    [valueView setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
    
    [self.navigationController pushViewController:lef animated:YES];
}
- (void)didReceiveMemoryWarning {
    
    
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
